package com.tiamo.traders.service.serviceImpl;

import com.tiamo.traders.entity.Certification;
import com.tiamo.traders.mapper.CertificationMapper;
import com.tiamo.traders.service.CertificationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class CertificationServiceImpl implements CertificationService {
    @Autowired
    CertificationMapper CM;

    @Override
    public int add(Certification certification) {
        return CM.add(certification);
    }

    @Override
    public int update(Certification certification) {
        return CM.update(certification);
    }

    @Override
    public int delete(Certification certification) {
        return CM.delete(certification);
    }

    @Override
    public List<Certification> findAll(Certification certification) {
        return CM.findAll(certification);
    }

    @Override
    public Certification findById(Certification certification) {
        return CM.findById(certification);
    }

    @Override
    public int getCount(Certification certification) {
        return CM.getCount(certification);
    }
}
